package work;

public class Student2 {
	
	private String name;
	private int age;
	private String sex;
	
	public double[] storage(double a,double b,double c,double d,double e){
		double[] score = new double[5];
		score[0] = a;
		score[1] = b;
		score[2] = c;
		score[3] = d;
		score[4] = e;
		double sum = 0.0;
		for (int i = 0; i < score.length; i++) {
			sum += score[i];
		}
		
		System.out.println("平均成绩为：" + sum/score.length);
		
		return score;
	}
	
	
}
